import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import FastClick from "fastclick";
import cidcUI from "cidc-ui";
import "cidc-ui/components/lib/cidc-ui.css";
import jsBridge from "@/common/util/jsBridge";
import "@/common/util"; // 引用工具类
import CallApp from "@/common/util/callApp";

Vue.use(cidcUI);
Vue.use(CallApp);
Vue.config.productionTip = false;
FastClick.attach(document.body);

/**
 * 桥接方法
 * */
Vue.prototype.$bridge = jsBridge;
window.jsBridge = jsBridge;

/**
 * 是否切换为客户端模式
 * */
Vue.prototype.$setClientMode = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
